package com.jk1123.us.core.statistics;

import com.jk1123.us.common.util.RequestUtil;
import lombok.Data;

/**
 * @author huyoufu <https://github.com/huyoufu>
 * @TIME 2021-09-16 23:16
 * @description 客户端访问的信息 将来用来大数据处理 分析信息
 */

public class StatisticHelper {
    public static Statistic collect(){
        Statistic statistic=new Statistic();

        statistic.setUserAgent(RequestUtil.getUserAgent());
        statistic.setCookie(RequestUtil.getCookie());
        statistic.setReferer(RequestUtil.getReferer());
        statistic.setRemoteIP(RequestUtil.getRemoteIP());


        return statistic;
    }

}
